var obj = {
	onShow(){
		if(uni.getStorageSync("token")){
		
		}else{
			uni.showModal({
				title: '未登录',
				content: '您未登录，需要登陆后才能查看',
				success: function (res) {
					if (res.confirm) {
						uni.navigateTo({
							url:"/pages/mine/login/login"
						})
					} else if (res.cancel) {
						console.log('用户点击取消');
					}
				}
			});	
		}
	}
}
export default obj